#pragma once
#include "EngineBase.h"

struct Corner
{
	PixPtr UPPER_LEFT;
	PixPtr UPPER_RIGHT;
	PixPtr BOTTOM_LEFT;
	PixPtr BOTTOM_RIGHT;
};

class Image
{
public:
	SDL_Rect Box;
	SDL_Surface *Surface;
	
	void LoadSurface(string FileName);
	void SetColorKey(Uint8 R, Uint8 G, Uint8 B);

	Corner GetCornerPos();
	IntPtr2D GetSurfSize();
	
	void Draw(int X, int Y);
	void Draw(PixPtr Pos);

	Image();
	Image(string FileName);
};